package com.example.tse.rbhttpservice.service.common.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.common.model.CommonGetBrandList;
/**
 * 获取所有品牌数据，用于筛选商品
 * @author wliu
 * edit tse
 */
public class CommonGetBrandListResponse extends RudderResponse{
    
    private List<CommonGetBrandList> getBrandList = new ArrayList<CommonGetBrandList>();
		
	
    /**
     * @return getBrandList
     */	
    public List<CommonGetBrandList> getGetBrandList() { 
	    return this.getBrandList;
    };
	
	/**
     * @return getBrandList
     */	
    public void setGetBrandList(List<CommonGetBrandList> getBrandList) { 
        this.getBrandList = getBrandList;
    };
    
	
        
    private static void filterFor(CommonGetBrandList common) {
        if (common.getBrandId() == null) {
            common.setBrandId("");
        }
        if (common.getBrandName() == null) {
            common.setBrandName("");
        }
        if (common.getBrandLogo() == null) {
            common.setBrandLogo("");
        }
    }
        
    public static void filter(CommonGetBrandListResponse common) {
        if (common.getGetBrandList() == null) {
            common.setGetBrandList(new ArrayList<CommonGetBrandList>());
        } else {
            for (CommonGetBrandList item : common.getGetBrandList()) {
                filterFor(item);
            }
        }
    }
}
